<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/

Route::get('/', function () {
    return redirect('/photo/index');
});

//登录注册
Route::get('/login','loginController@viewlogin');
Route::get('/list','loginController@list');
Route::post('/login','loginController@dologin');
Route::get('/sign_up','loginController@register');
Route::post('/register','loginController@doRegister');
Route::get('/loginout','loginController@loginout');
Route::get('/doAdd','loginController@doAdd');

//博客
Route::resource('/blogger','bloggerController');

//购物车
Route::get('/cart/index','CartController@Index');
Route::get('/cart/add/{id}','CartController@Add');
Route::get('/cart/show','CartController@Show');
Route::get('/cart/move/{id}','CartController@Move');
Route::get('/cart/destroy','CartController@Destroy');

//相册模块
Route::controller('/photo','photoController');





